//
//  WH_CheckCell.m
//  App_6.23
//
//  Created by wanghao on 16/7/26.
//  Copyright © 2016年 wanghao. All rights reserved.
//

#import "WH_CheckCell.h"
#import "WH_Home.h"

@interface WH_CheckCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageV;

@property (weak, nonatomic) IBOutlet UILabel *nameL;

@property (weak, nonatomic) IBOutlet UILabel *countL;

@end
@implementation WH_CheckCell


-(void)setList:(WH_Home *)list{
    
    if (_list != list) {
        
        _list = list;
    }
    
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:_list.product_image] placeholderImage:PLACEHOLDER_CELL_SAME];
    self.nameL.text = _list.product_name;
    self.countL.text = [NSString stringWithFormat:@"%@ 人次",_list.product_count];
    [WH_AppTools changeColor:self.countL.text color:[UIColor redColor] xx:_list.product_count nn:self.countL];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
